<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/12/19
  Time: 14:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  if (session.getAttribute("user") != null) {
    response.sendRedirect("main.jsp");
  }
%>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>后台登录</title>
  <link rel="stylesheet" type="text/css" href="public/css/login.css"/>
  <style>
    body {
      background-image: url('public/img/bjt.jpg');
      background-size: cover; /* 背景图片覆盖整个页面 */
      background-repeat: no-repeat;/* 背景图片不平铺 */
      background-attachment: fixed;/* 背景图片固定，内容滚动时背景不跟随滚动 */
      padding-top: 15%;
    }
  </style>
</head>
<body>
  <form action="/loginServe" method="post">
    <label for="username">用户名:</label>
    <input type="text" id="username" name="username" required><br><br>
    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required><br><br>
    <input type="submit" value="登录">
    <div id="abx">
      <a href="register.jsp">点击注册</a>
      <a href="forgot-password.html">忘记密码</a>
    </div>
  </form>
</body>
</html>
